Skip to content

Fix zero-capacity disk rendering and root rule inheritance - #639

Merged
lippserd merged 2 commits into
mainfrom
consolidate-prs-630-632
Jun 24, 2026
Merged

Fix zero-capacity disk rendering and root rule inheritance#639
lippserd merged 2 commits into
mainfrom
consolidate-prs-630-632

Conversation

@lippserd

Copy link
Copy Markdown
Member

This extracts fixes from PRs #630, #631, and #632 into a clean branch without carrying over the mixed/stacked/incomplete changes.

  • Avoid division by zero when rendering guest disk rows with capacity = 0.
  • Also fix the same division-by-zero issue in the guest disk table footer.
  • Avoid division by zero in SimpleUsageBar when the total is zero.
  • Fix monitoring rule inheritance for objects without a parent UUID.

closes #630
closes #631
closes #632

lippserd added 2 commits June 24, 2026 22:02
Guest disk rendering divided by the reported capacity in both the row
and footer percentage output. Automount entries can report a capacity of
zero, which made the VM disk usage table fail while rendering.

The usage bar had the same zero-total division when calculating its CSS
width. Zero-capacity rows and totals now render n/a for the percentage and
a zero-width usage bar.
Rule refresh can reach objects whose managed object has no parent UUID.
The previous code passed that null value into listParentUuidsFor(), whose
string parameter raises a TypeError on PHP 8 instead of loading inherited
settings.

Missing parent UUIDs now use the existing root rule-set sentinel, so root
objects can still inherit global monitoring rules without entering parent
traversal.
@lippserd lippserd added this to the v1.9.0 milestone Jun 24, 2026
@cla-bot cla-bot Bot added the cla/signed label Jun 24, 2026
@lippserd
lippserd merged commit 1fbb15d into main Jun 24, 2026
5 checks passed
@lippserd
lippserd deleted the consolidate-prs-630-632 branch June 24, 2026 20:13
@lippserd lippserd modified the milestones: v1.9.0, v1.8.4 Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant